package com.news.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.news.dao.DeptDao;
import com.news.entity.Dept;
import com.news.service.DeptService;
@Service
public class DeptServiceImpl implements DeptService {

	@Resource
	private DeptDao deptDao;
	
	@Override
	public Dept getDept(int id) {
		System.out.println(deptDao);
		return deptDao.getDept(id);
	}

	@Override
	public int saveDept(Dept dept) {
		return deptDao.saveDept(dept);
	}

	@Override
	public int deleteDept(int id) {
		return deptDao.deleteDept(id);
	}

	@Override
	public int updateDept(Dept dept) {
		return deptDao.updateDept(dept);
	}

	@Override
	public List<Dept> findAll() {
		return deptDao.findAll();
	}

}
